package com.chf.job.dao;

import com.chf.job.pojo.Tags;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TagsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Tags record);

    int insertSelective(Tags record);

    Tags selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Tags record);

    int updateByPrimaryKey(Tags record);

    Tags selectByTagAndCompanyId(@Param("companyId") Integer companyId, @Param("tag") String tag);

    int deleteByCompanyIdAndTag(@Param("companyId") Integer companyId, @Param("tag") String tag);

    List<Tags> getAllByCompanyId(Integer id);
}